home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_096 / warptext / warptext.i < prev    next >
Text File  |  1992-05-06  |  3KB  |  55 lines

  1. * ------------------------------------------------------------------------
  2. * graphics/WarpText.i -- Assembler include file for         Bill Kelly
  3. * WarpText text routines.                                   07/07/87
  4. *
  5. * Copyright 1987 by Bill W. Kelly.  All Rights Reserved.
  6. *
  7. * This is meant to go in the Graphics directory of the assembler includes.
  8. * When you assemble WarpText.asm, it will include: "graphics/WarpText.i"
  9. * ------------------------------------------------------------------------
  10.  
  11. * --------------------------------------------------------------------------
  12. * The following structure, WarpInfo, is used by these four routines:
  13. *   InitWarpInfo    (Initializes the WarpInfo structure for use)
  14. *   GetXY           (Returns current cursor position)
  15. *   GotoXY          (Sets cursor to given position)
  16. *   WarpText        (Emits text at ~13,500 characters per second)
  17.  
  18.  
  19.     STRUCTURE  WarpInfo,0       ;...the <I> denotes internal use.
  20.         APTR    wi_TextFont     ;Pointer to a TextFont structure.
  21.         APTR    wi_BitMap       ;Pointer to a BitMap structure.
  22.         UWORD   wi_WhichPlane   ;Which bitplane to render into.
  23.         UWORD   wi_Left         ;Left edge of 'window' in char loc's.
  24.         UWORD   wi_Top          ;Top edge of 'window' in char loc's.
  25.         UWORD   wi_Width        ;Width of 'window' in char loc's.
  26.         UWORD   wi_Height       ;Height of 'window' in char loc's.
  27.         APTR    wi_WindowTop    ;<I> Address of top of 'window.'
  28.         APTR    wi_CurLine      ;<I> Address of start of current line.
  29.         APTR    wi_LastLine     ;<I> Address of start of last line.
  30.         UWORD   wi_CurX         ;<I> Current X position.
  31.         UWORD   wi_LastX        ;<I> Maximum X position on a line.
  32.         UWORD   wi_BPMod        ;<I> # total possible chars on a line in bp
  33.         UWORD   wi_Modulo       ;<I> Add this to get to next line.
  34.         LABEL   wi_SIZE
  35.  
  36.  
  37. * --------------------------------------------------------------------------
  38. * The following structure, NewWarpInfo, is used by these three routines:
  39. *   SetupFont       (Copies font to given 2048 byte array for faster access)
  40. *   NewWarp         (Emits text at ~30,000 characters per second)
  41. *   XORCursor       (XOR's a visible cursor to the current xy location)
  42.  
  43.  
  44.     STRUCTURE  NewWarpInfo,0
  45.         UWORD   nwi_XLoc        ;Current X position in char. loc's.
  46.         UWORD   nwi_YLoc        ;Current Y position in char. loc's.
  47.         APTR    nwi_BitPlane    ;Address of bitplane to render text into.
  48.         APTR    nwi_FontData    ;Address of 2048 byte array for font data.
  49.         LABEL   nwi_SIZE
  50.  
  51.  
  52. * ---------------------------- *
  53. * End of "graphics/WarpText.i" *
  54. * ---------------------------- *
  55.